<script setup lang="ts">
const props: any = defineProps<{
    ujt?: any;
    asaidata: any;
    formdata: any;
    formkey: any;
}>();
</script>

<template>
    <AsaiFormLabel
        :ujt="ujt"
        :asaidata="asaidata"
        :formdata="formdata"
        :formkey="formkey"
        >{{
            typeof props.formdata[formkey] === 'string' && asaidata.eq > 2
                ? '"'
                : ''
        }}
        <input
            :type="
                props.asaidata.rule?.[formkey]?.type ||
                (typeof props.formdata[formkey] === 'boolean'
                    ? 'checkbox'
                    : typeof props.formdata[formkey] === 'number'
                    ? 'number'
                    : 'string')
            "
            :max="props.asaidata.rule?.[formkey]?.max"
            :min="props.asaidata.rule?.[formkey]?.min"
            v-model="props.formdata[formkey]"
        />{{
            typeof props.formdata[formkey] === 'string' && asaidata.eq > 2
                ? '"'
                : ''
        }}
    </AsaiFormLabel>
</template>

<style scoped lang="scss"></style>
